﻿using System;
using Zavand.Web.Mvc.Manana.Framework;

namespace Zavand.Web.Mvc.Manana.SampleWebsite.Common
{
    public class SampleWebsiteRoute : BaseRoute
    {
        public override void FollowContext(BaseRoute r)
        {
            base.FollowContext(r);
            if (r != null && !String.IsNullOrEmpty(r.Locale))
                Locale = r.Locale;
        }
        public override object GetConstraintsLocalized()
        {
            return new { Locale = "en-US|ru-RU|es-ES|de-DE|fr-FR" };
        }
    }
}